package com.example.comment_oa.pojos;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName personal_effects
 */
@TableName(value ="personal_effects")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PersonalEffects implements Serializable {
    /**
     * 个人物品id
     */
    @TableId(value = "PERSONAL_ID")
    private Integer personalId;

    /**
     * 个人物品编号
     */
    @TableField(value = "PERSONAL_EFFECTS_NO")
    private String personalEffectsNo;

    /**
     * 个人物品名称
     */
    @TableField(value = "PERSONAL_NAME")
    private String personalName;

    /**
     * 个人物品领取时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "PERSONAL_TIME")
    private Date personalTime;

    /**
     * 个人物品数量
     */
    @TableField(value = "PERSONAL_AMOUNT")
    private Integer personalAmount;

    /**
     * 个人物品金额
     */
    @TableField(value = "PERSONAL_SUM")
    private Double personalSum;


    /**
     * 个人物品状态
     */
    @TableField(value = "PERSONAL_STATE")
    private String personalState;

    /**
     * 个人物品是否追回0是1否
     */
    @TableField(value = "PERSONAL_RECOVER")
    private String personalRecover;

    /**
     * 个人id
     */
    @TableField(value = "USER_ID")
    private Integer userId;

    /**
     * 个人名称
     */
    @TableField(value = "USER_NAME")
    private String userName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}